#include "WMI_File.h"

using namespace std;
using namespace log4cxx;
using namespace log4cxx::xml;
using namespace log4cxx::helpers;

WMI_File::WMI_File(IWbemClassObject* pclsObj) : WMI_FileDirectory(pclsObj)
{
}

WMI_File::~WMI_File(void)
{
}

void WMI_File::print()
{
    wstringstream wout;
    LoggerPtr loggerFileDir(Logger::getLogger("loggerFileDir"));

    string date=WMI_Utils::formatStd(getCreationDate());
    wstring wdate(date.begin(),date.end());
    wout << NAME <<": \""<< getName(); 
    wout <<  "\" " << CREATION_DATE <<": ";
    wout << wdate;
    
    LOG4CXX_INFO(loggerFileDir,wout.str());
}
